package ucm;

import model.User;

/**
 * UCRegisterUser
 *
 * Primary Actor: User
 * Goal: Register User on databae
 * Precondition: Connected to database. Username does not exist
 * Postcondition: User account created.
 *
 * @author Tobias
 */
public class UCRegisterUser 
{
    public UCRegisterUser() {
        run();
    }

    /**
     * 1. Actor selects add user.
     * 2. The system requests the actor to enter user info.
     * 4. System verifies user input.
     * 5. System adds user to database.
     * 6. System notifies actor account created.
     */
    public void run() {
        User.loadRegisterUserView("user");
    }
}
